// 导入 joi 模块进行表单验证
const joi = require('joi')

const account = joi.string().alphanum().min(6).max(12).required()
const password = joi.string().pattern(/^[\S]{6,12}$/).min(6).max(12).required()

exports.login_limit = {
  body: {
    account,
    password
  }
}